#ifndef PARAMSSET_H
#define PARAMSSET_H
#pragma once
#include "api/systemManager/paramssetapi.h"
#include <QObject>
#include <ui_index.h>
#include <QList>
#include <QNetworkReply>
#include <QPixmap>
#include <Entity/DictData.h>
#include <Entity/SysConfig.h>
class ParamsSet : public QObject
{
    Q_OBJECT
public:
    explicit ParamsSet(Ui::Index *ui,QObject *parent = nullptr);

private slots:
    void pageSizeChanged(int index);
    void deleteByIds();

private:
    Ui::Index *ui;
    ParamsSetApi paramsSetApi;
    QList<SysConfig> sysConfigList;
    QList<DictData> dictList;
    int pageSize;
    int total;
    int currentPage;
    int totalPage;

    void init();
    void getList();
    void getDict();
    void initTableWidget();
    void initSearchArea();
    void initPageInfo();
};

#endif // PARAMSSET_H
